package com.ruoyi.btlfbreed.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备信息对象 tb_equipment
 * 
 * @author codeman
 * @date 2024-05-03
 */
public class TbEquipment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long equipmentId;
    private Long houseId;
    private String houseIdName;
    /** 设备名称 */
    @Excel(name = "设备名称")
    private String equipmentName;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String equipmentCode;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String equipmentType;

    /** 制造商 */
    @Excel(name = "制造商")
    private String manufacturer;

    /** 购买日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "购买日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseDate;

    /** 设备状态 */
    @Excel(name = "设备状态")
    private String status;

    /** 设备位置 */
    @Excel(name = "设备位置")
    private String location;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    public Long getHouseId()
    {
        return houseId;
    }

    public void setHouseId(Long houseId)
    {
        this.houseId = houseId;
    }

    public String getHouseIdName()
    {
        return houseIdName;
    }

    public void setHouseIdName(String houseIdName)
    {
        this.houseIdName = houseIdName;
    }

    /** 设备维修记录信息 */
    private List<TbEquipmentRecords> tbEquipmentRecordsList;

    public void setEquipmentId(Long equipmentId) 
    {
        this.equipmentId = equipmentId;
    }

    public Long getEquipmentId() 
    {
        return equipmentId;
    }
    public void setEquipmentName(String equipmentName) 
    {
        this.equipmentName = equipmentName;
    }

    public String getEquipmentName() 
    {
        return equipmentName;
    }
    public void setEquipmentCode(String equipmentCode) 
    {
        this.equipmentCode = equipmentCode;
    }

    public String getEquipmentCode() 
    {
        return equipmentCode;
    }
    public void setEquipmentType(String equipmentType) 
    {
        this.equipmentType = equipmentType;
    }

    public String getEquipmentType() 
    {
        return equipmentType;
    }
    public void setManufacturer(String manufacturer) 
    {
        this.manufacturer = manufacturer;
    }

    public String getManufacturer() 
    {
        return manufacturer;
    }
    public void setPurchaseDate(Date purchaseDate) 
    {
        this.purchaseDate = purchaseDate;
    }

    public Date getPurchaseDate() 
    {
        return purchaseDate;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public List<TbEquipmentRecords> getTbEquipmentRecordsList()
    {
        return tbEquipmentRecordsList;
    }

    public void setTbEquipmentRecordsList(List<TbEquipmentRecords> tbEquipmentRecordsList)
    {
        this.tbEquipmentRecordsList = tbEquipmentRecordsList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("equipmentId", getEquipmentId())
            .append("equipmentName", getEquipmentName())
            .append("equipmentCode", getEquipmentCode())
            .append("equipmentType", getEquipmentType())
            .append("manufacturer", getManufacturer())
            .append("purchaseDate", getPurchaseDate())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("location", getLocation())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("tbEquipmentRecordsList", getTbEquipmentRecordsList())
            .toString();
    }
}
